using System.Net;

namespace Axe.Conversions.CustomConverters
{
    internal class IPAddressToStringConverter : Conversion<IPAddress, string>
    {
        public override string ForwardConvert(IPAddress instance)
        {
            return instance.ToString();
        }

        public override IPAddress ReverseConvert(string instance)
        {
            return IPAddress.Parse(instance);
        }
    }
}